'use strict';

const getSysmenuData = require('../actions/sysmenu/getSysmenuData');

module.exports = async function (ctx) {
    try {
        let group_id = ctx.session.user.group_id;
        let user_name = ctx.session.user.user_name;
        ctx.body = await getSysmenuData(group_id,user_name);
    } catch (e) {
        ctx.body = {success: false, message: e.message};
    }
};